<?php include PATH_TPL."/admin/tpl.header.phtml"?>
<div class="main-container inner">
    <div class="main-content">
        <div class="container-fluid">
            <div class="row bt">
                <div class="col-lg-12 bg">
                    <ol class="breadcrumb">
                        <li class="active">
                            <i class="fa  fa-fw fa-reorder"></i>  评论管理
                        </li>
                    </ol>
                </div>
            </div>
            <div class="row">
                <div class="col-md-4">
                    <a class="btn btn-success" href="#">微信订单列表</a>
                </div>
                <div class="col-md-8">
                    <form method="post" action="/admin_wxorder">
                        <div class="form-group col-md-6">
                            <div class="input-group date form_date" data-date="<?=date("Y-m-d",time())?>" data-date-format="yyyy-mm-dd" data-link-field="created">
                                <input class="form-control" size="16" type="text" value="" readonly placeholder="输入下单时间搜索">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
                                <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
                            </div>
                            <input type="hidden" id="created" value="" name="created" /><br/>
                        </div>
                        <div class="form-group input-group col-md-6 pull-righ">
                        <input type="text" placeholder="输入培训标题或姓名关键词搜索" name="key" class="form-control" value="<?=$pKey?>">
                            <span class="input-group-btn">
                              <button type="button" class="btn btn-default" id="search"><i class="fa fa-search"></i></button>
                            </span>
                        </div>
                    </form>
                </div>
            </div>

            <div class="panel-body text-center">
                <table class="table table-hover" id="sample-table-1">
                    <thead>
                        <tr>
                            <td>编号</td>
                            <td>培训标题</td>
                            <td>金额</td>
                            <td>姓名</td>
                            <td>商户订单号</td>
                            <td>支付状态</td>
                            <td>设备类型</td>
                            <td>下单时间</td>
                        </tr>
                    </thead>
                    <?foreach($tDatas as $tRow){?>
                    <tr>
                        <td><?=$tRow['id']?></td>
                        <td><?=$tRow['title']?></td>
                        <td><?=$tRow['total_fee']?></td>
                        <td><?=$tRow['name']?></td>
                        <td><?=$tRow['out_trade_no']?></td>
                        <td><?=empty($tRow['status'])?'未支付':'已支付'?></td>
                        <td><?=empty($tRow['device'])?'IOS':'安卓'?></td>
                        <td><?=empty($tRow['created'])?'-':date('Y-m-d H:i:s',$tRow['created'])?></td>
                    </tr>
<?}?>
                </table>
<?=$tShow?>
            </div>
        </div>
        <div class="subviews">
            <div class="subviews-container"></div>
        </div>
    </div>
    <!-- end: PAGE -->
</div>
<!-- end: MAIN CONTAINER -->

<script type="text/javascript" src="/plugins/datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="/plugins/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">
$('.form_date').datetimepicker({
    language:  'zh-CN',
    weekStart: 1,
    todayBtn:  1,
    autoclose: 1,
    todayHighlight: 1,
    startView: 2,
    minView: 2,
    startDate:'2016-01-01',
    endDate:'2030-12-30',
    pickerPosition: "bottom-left",
    forceParse: 1
});
</script>


<script>
$('#search').click(function(){
    $('form').submit();
});
</script>
<?php include PATH_TPL."/admin/tpl.footer.phtml"?>
